Object.defineProperty(exports, '__esModule', {
	value: !0
});
(exports.mainType = {
	course: 1,
	year: 2,
	vip: 4,
	chapter: 5,
	error: 6,
	coll: 7,
	paper: 8
}),
(exports.topicType = {
	single: 1,
	multi: 2,
	judge: 3,
	answer: 4,
	fill: 5,
	cloze: 6,
	read: 7,
	noun: 8,
	high: 100,
	chapter: 101
}),
(exports.getTopicTypeLabel = function(e) {
	switch (e) {
		case 1:
			return '单选题';
		case 2:
			return '多选题';
		case 3:
			return '判断题';
		case 4:
			return '问答题';
		case 5:
			return '填空题';
		case 6:
			return '完形填空';
		case 7:
			return '阅读理解';
		case 8:
			return '名词解释';
		case 10:
			return '简答题';	
		case 12:
			return '论述题';							
	}

	return '未知题型';
}),
(exports.getTopicTypeIcon = function(e) {
	switch (e) {
		case 1:
			return '/static/img/ic_topic_1.png';

		case 2:
			return '/static/img/ic_topic_2.png';

		case 3:
			return '/static/img/ic_topic_3.png';

		case 4:
			return '/static/img/ic_topic_4.png';

		case 5:
			return '/static/img/ic_topic_5.png';

		case 8:
			return '/static/img/ic_topic_8.png';
	}
	return '/static/img/ic_topic_1.png';
}),
(exports.checkAnswer = function(type) {
	return ![4, 5, 6, 7, 8, 10, 12].includes(type);
});
(exports.buildAnswerOption = function(e) {
	if (e.length == 1) {
		return e;
	}
	return e.split('');
});